bitkeeper revision 1.291 (3f098da7GHKu8C68q5phZ9RCpFlhhw)
authorsos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Mon, 7 Jul 2003 15:11:35 +0000 (15:11 +0000)
committersos22@labyrinth.cl.cam.ac.uk <sos22@labyrinth.cl.cam.ac.uk>
Mon, 7 Jul 2003 15:11:35 +0000 (15:11 +0000)
Fix some warnings.

xenolinux-2.4.21-sparse/fs/partitions/xeno.c

index 2ddc71b4d1a42ee0adf76b27b7dca11ece3e237e..dfd04d0c0c91adce57437864f4f176ea45a39424 100644 (file)
@@ -6,9 +6,13 @@
 #include <linux/slab.h>
 #include <linux/genhd.h>
 #include <asm/hypervisor-ifs/block.h>
+#include <linux/pagemap.h>
 
+#include "check.h"
 #include "xeno.h"
 
+extern int xenolinux_control_msg(int operration, char *buffer, int size);
+
 /* Grab the physdisk partitions list from the hypervisor. */
 int xeno_partition(struct gendisk *hd,
                   struct block_device *bdev,
@@ -27,7 +31,7 @@ int xeno_partition(struct gendisk *hd,
   buf->start_ind = 0;
   buf->n_aces = PHYSDISK_MAX_ACES_PER_REQUEST;
 
-  xenolinux_control_msg(XEN_BLOCK_PHYSDEV_PROBE, buf,
+  xenolinux_control_msg(XEN_BLOCK_PHYSDEV_PROBE, (char *)buf,
                        sizeof(*buf));
   if (buf->n_aces == 0) {
     kfree(buf);